<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:101:"/www/wwwroot/wait2024.cn/canying_fastadmin/public/../application/admin/view/fzdc/dashboard/index.html";i:1741313518;s:85:"/www/wwwroot/wait2024.cn/canying_fastadmin/application/admin/view/layout/default.html";i:1741180601;s:82:"/www/wwwroot/wait2024.cn/canying_fastadmin/application/admin/view/common/meta.html";i:1741180601;s:84:"/www/wwwroot/wait2024.cn/canying_fastadmin/application/admin/view/common/script.html";i:1741180601;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">

<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo htmlentities(\think\Config::get('fastadmin.adminskin') ?? ''); ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">
<?php endif; ?>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config ?? ''); ?>
    };
</script>

    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <?php if($auth->check('dashboard')): ?>
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                    <?php endif; ?>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo htmlentities($vo['url'] ?? ''); ?>"><?php echo htmlentities($vo['title'] ?? ''); ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <style type="text/css">
    .bg-card-1 {
        background: linear-gradient(-125deg, #22dcfd, #5865b9);
        color: #ffffff;
    }

    .bg-card-2 {
        background: linear-gradient(-125deg, #ed3b4b, #4c3b92);
        color: #ffffff;
    }

    .bg-card-3 {
        background: linear-gradient(-113deg, #ffab96, #ff0f47);
        color: #ffffff;
    }

    .bg-card-4 {
        background: linear-gradient(-141deg, #fbd6e3, #a9ede9);
        color: #ffffff;
    }

    .fzdccard .small-box, .panel {
        border-radius: 10px;
    }

    .fzdccard .small-box > .inner {
        padding: 15px 22px;
    }

    .fzdccard .small-box > .inner p:last-child {
        font-size: 12px;
    }

    .fzdccard .small-box p {
        font-size: 14px;
        margin: 10px 0;
    }

    .fzdccard .small-box h3 {
        font-weight: 100;
    }

    .fzdccard .small-box .icon {
        color: rgba(255, 255, 255, 0.16);
        right: 22px;
    }

    .small-box .icon {
        font-size: 80px;
    }

    .panel-statistics h3 {
        font-weight: 500;
        font-size: 14px;
        color: #333;
        margin-top: 9.2px;
    }

    .panel-statistics h4 {
        color: #666;
        font-weight: 400;
        font-size: 14px;
    }

    .panel-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: -9px;
    }

    .fzdcllist .panel-statistics h4 {
        color: #555;
        font-weight: bold;
        font-size: 18px;
    }

    .fzdcllist .panel-statistics thead {
        color: #777777;
    }

    .vertical {
        vertical-align: middle;
    }

    .table > thead > tr > th,
    .table > thead > tr > td,
    .table > tbody > tr > th,
    .table > tbody > tr > td {
        padding: 12px 0;
        font-weight: initial;
    }

    .table > tbody > tr > td:first-child {
        color: #666666;
    }
</style>

<div class="row fzdccard">
    <div class="col-lg-6 col-xs-6">
        <div class="small-box bg-card-1">
            <div class="inner">
                <p>店铺</p>
                <h3><?php echo htmlentities($totalShop ?? ''); ?></h3>
                <p>商城店铺总数量</p>
            </div>
            <div class="icon">
                <i class="fa fa-sitemap"></i>
            </div>
        </div>
    </div>
    <div class="col-lg-6 col-xs-6">
        <div class="small-box bg-card-2">
            <div class="inner">
                <p>商品</p>
                <h3><?php echo htmlentities($totalGoods ?? ''); ?></h3>
                <p>商城店铺商品总和</p>
            </div>
            <div class="icon">
                <i class="fa fa-shopping-cart"></i>
            </div>
        </div>
    </div>
    <!-- <div class="col-lg-3 col-xs-6">
        <div class="small-box bg-card-3">
            <div class="inner">
                <p>会员</p>
                <h3><?php echo htmlentities($totalUser ?? ''); ?></h3>
                <p>平台注册会员总数</p>
            </div>
            <div class="icon">
                <i class="fa fa-user-circle"></i>
            </div>
        </div>
    </div>
    <div class="col-lg-3 col-xs-6">
        <div class="small-box bg-card-4">
            <div class="inner">
                <p>今日会员</p>
                <h3><?php echo htmlentities($totalDayUser ?? ''); ?></h3>
                <p>今日新增用户数量</p>
            </div>
            <div class="icon">
                <i class="fa fa-user"></i>
            </div>
        </div>
    </div> -->
</div>
<!-- 资金 -->
<div class="row">
    <div class="col-xs-12">
        <div class="row">
            <div class="col-xs-3" style="margin-bottom:15px;">
                <div class="panel panel-default panel-intro panel-statistics">
                    <div class="panel-body">
                        <h3>平台总流水</h3>
                        <h4>￥<?php echo sprintf('%.2f',$MoneyPaySum); ?></h4>
                    </div>
                </div>
            </div>
            <div class="col-xs-3" style="margin-bottom:15px;">
                <div class="panel panel-default panel-intro panel-statistics">
                    <div class="panel-body">
                        <h3>今日订单金额</h3>
                        <h4>￥<?php echo sprintf('%.2f',$MoneyLogDayPay); ?></h4>
                    </div>
                </div>
            </div>
            <div class="col-xs-3" style="margin-bottom:15px;">
                <div class="panel panel-default panel-intro panel-statistics">
                    <div class="panel-body">
                        <h3>昨日订单金额</h3>
                        <h4>￥<?php echo sprintf('%.2f',$MoneyLogDayRecharge); ?></h4>
                    </div>
                </div>
            </div>
            <div class="col-xs-3" style="margin-bottom:15px;">
                <div class="panel panel-default panel-intro panel-statistics">
                    <div class="panel-body">
                        <h3>总库存</h3>
                        <div class="panel-btn">
                            <h4><?php echo htmlentities($initiateWithdraw ?? ''); ?> 个</h4>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 百度图标 -->
<div class="row">
    <div class="col-xs-12 col-sm-6">
        <div class="panel">
            <div class="panel-body">
                <div id="echarts_order"
                     style="height: 365px; -webkit-tap-highlight-color: transparent; user-select: none; position: relative;"
                     _echarts_instance_="ec_1605807574556">
                    <div style="position: relative; width: 416px; height: 365px; padding: 0px; margin: 0px; border-width: 0px; cursor: default;">
                        <canvas data-zr-dom-id="zr_0" width="416" height="300"
                                style="position: absolute; left: 0px; top: 0px; width: 416px; height: 265px; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0px; margin: 0px; border-width: 0px;"></canvas>
                    </div>
                    <div style="position: absolute; display: none; border-style: solid; white-space: nowrap; z-index: 9999999; transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s; background-color: rgba(50, 50, 50, 0.7); border-width: 0px; border-color: rgb(51, 51, 51); border-radius: 4px; color: rgb(255, 255, 255); font: 14px/21px &quot;Microsoft YaHei&quot;; padding: 5px; left: 372px; top: 265px; pointer-events: none;">
                        21:00<br>订单数 : 0 个 <br>订单额 : 0 元
                    </div>
                </div>
                <a href="javascript:" class="btn btn-refresh hidden" data-type="sale">订单统计</a>
            </div>
        </div>
    </div>
    <div class="col-xs-3">

        <div class="panel panel-default panel-intro panel-statistics">
            <div class="panel-body" style="height:397px">
                <h4>TOP10 销量</h4>
                <table class="table" style="width:100%">
                    <thead>
                    <tr>
                        <th class="text-left">商品名称</th>
                        <th class="text-right" width="50px">销量</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php if(is_array($goodsTopList) || $goodsTopList instanceof \think\Collection || $goodsTopList instanceof \think\Paginator): if( count($goodsTopList)==0 ) : echo "
                    <tr>
                        <td colspan='2' class='text-center'>暂无数据</td>
                    </tr>
                    " ;else: foreach($goodsTopList as $key=>$item): ?>
                    <tr>
                        <td class="vertical text-left">
                            <?php echo $key+1; ?>. <?php echo htmlentities($item['title'] ?? ''); ?>
                        </td>
                        <td class="vertical text-right">
                            <?php echo htmlentities($item['sales'] ?? ''); ?>
                        </td>
                    </tr>
                    <?php endforeach; endif; else: echo "
                    <tr>
                        <td colspan='2' class='text-center'>暂无数据</td>
                    </tr>
                    " ;endif; ?>
                    </tbody>
                </table>
            </div>
        </div>

    </div>
    <div class="col-xs-3">
        <div class="panel panel-default panel-intro panel-statistics">
            <div class="panel-body" style="height:397px">
                <h4>新申请店铺</h4>
                <table class="table" style="width:100%">
                    <thead>
                    <tr>
                        <th class="text-left">店铺名称</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php if(is_array($shopAuthList) || $shopAuthList instanceof \think\Collection || $shopAuthList instanceof \think\Paginator): if( count($shopAuthList)==0 ) : echo "
                    <tr>
                        <td colspan='2' class='text-center'>暂无数据</td>
                    </tr>
                    " ;else: foreach($shopAuthList as $key=>$item): ?>
                    <tr>
                        <td class="vertical text-left">
                            <?php echo $key+1; ?>. <?php echo htmlentities($item['shopname'] ?? ''); ?>
                        </td>

                    </tr>
                    <?php endforeach; endif; else: echo "
                    <tr>
                        <td colspan='2' class='text-center'>暂无数据</td>
                    </tr>
                    " ;endif; ?>
                    </tbody>
                </table>
            </div>
        </div>

    </div>
</div>
<!-- 列表 -->
<div class="row fzdcllist">

</div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require.min.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>

    </body>
</html>
